package com.github.pig.admin.service.attendance.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.github.pig.admin.mapper.attendance.AttendanceRecordMapper;
import com.github.pig.admin.model.attendance.AttendanceRecord;
import com.github.pig.admin.service.attendance.IAttendanceRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 考勤记录
 * </p>
 *
 * @author sxf
 * @since 2018-11-22
 */
@Service
public class AttendanceRecordServiceImpl extends ServiceImpl<AttendanceRecordMapper, AttendanceRecord> implements IAttendanceRecordService {
    @Autowired
    private AttendanceRecordMapper recordMapper;

    @Override
    public List<AttendanceRecord> getByUserForDay(String userName, String date) {
        return recordMapper.getByUserForDay(userName,date);
    }

    @Override
    public List<AttendanceRecord> getByUserForMonth(String userName, String date) {
        return recordMapper.getByUserForMonth(userName,date);
    }
}
